package com.yunche.yunchebusiness.mvp.model

import com.yunche.yunchebusiness.base.BaseResponse
import com.yunche.yunchebusiness.base.rx.SchedulerUtils
import com.yunche.yunchebusiness.entity.TenantInfoEntity
import com.yunche.yunchebusiness.network.RetrofitManager
import io.reactivex.Observable

/**
 * Create by Crcker on 2018/12/28 10:07
 * Email: Crcker@163.com
 */


class TenantModel {

    fun getTenantInfo(): Observable<BaseResponse<TenantInfoEntity>> =
        RetrofitManager.service.getTenantInfo().compose(SchedulerUtils.ioToMain())

}